//============================================================================
// Name        : maps.cpp
// Author      : 
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
#include <typeinfo>
using namespace std;
#include "NeighListB.h"

typedef NeighListB<NonSortable> Neigh0;
typedef NeighListB<Sortable> Neigh1;
int main() {
	Neigh1	* nei=new Neigh1 [3];
	Neigh1::iterator it;
	Sortable a={3.0,3};
	nei[0].push_front(a);
	a.dist=6.333; a.n=5;
	nei[0].push_front(a);
	a.dist=1.333; a.n=53;
	nei[0].push_front(a);

	nei[0].mysort();
	for(it=nei[0].begin();it!=nei[0].end();++it){
		cout   << it->n << std::endl;
	}
	delete [] nei;
	return 0;
}

/*
#include "Neigh.h"

int main() {
	Neigh * nei=new Neigh[3];
	nei[0].insert(1.0,0);
	nei[0].insert(2.2,3);
	nei[0].insert(1.5,6);
	Neigh::iterator it;
	for(it=nei[0].begin();it!=nei[0].end();++it){
		cout << it->dist  << " " << it->n << endl;
	}
	delete [] nei;
	nei=new Neigh[3];
	nei[0].insert(4.0,0);
	nei[0].insert(1.2,3);
	nei[0].insert(8.5,6);
	for(it=nei[0].begin();it!=nei[0].end();++it){
		cout << it->dist  << " " << it->n << endl;
	}
	return 0;
}
*/
